import React from 'react';
import {Router, Route, IndexRoute} from 'dva/router';
import App from './components/layout/App';

import Login from "./routes/login/Login";
  {/* 燃气安全监督办公管理 */}
import GasStationCall from './routes/GasStation/GasStationCall';
import RepControl from './routes/RepControl/RepControl';
import RepControl1 from './routes/RepControl/RepControl1';
import RepDetails from './routes/RepControl/RepDetails';
import RepAirDetails from './routes/RepControl/RepAirDetails';
import RepSellDetails from './routes/RepControl/RepSellDetails';
  // 泄漏监控
import BlabVideo from './routes/BlabVideo/BlabVideo';
import BlabCurrent from './routes/BlabVideo/BlabCurrent';
import BlabHour from './routes/BlabVideo/BlabHour';
//报警管理
import Device from './routes/Device/Device';
import DeviceVideo from './routes/Device/DeviceVideo';
//数据统计分析
import DataAnals from './routes/DataAnals/DataAnals';
//外勤任务管理
import WorkDown from './routes/WorkDown/WorkDown';
import WordCheck from './routes/WorkDown/WordCheck';
import WordAdd from './routes/WorkDown/WordAdd';
import WordEdit from './routes/WorkDown/WordEdit';
import WordDetails from './routes/WorkDown/WordDetails';
//视频管理
import VideoDay from './routes/video/VideoDay';
import VideoHistory from './routes/video/VideoHistory';
//钢瓶配送监管
import  GasDate from './routes/GasOf/GasDate';
import  GasSave from './routes/GasOf/GasSave';
//社会舆情管理
// import Public from './routes/Public/Public';
import PubDetails from './routes/Public/PubDetails';
import Public from './routes/Public/Public';
import PubReply from './routes/Public/PubReply';
//燃气站人员模块
import GasSelf from './routes/GasPel/GasSelf';
import GasEnter from './routes/GasPel/GasEnter';
//驾驶舱模块
import Cockpit from './routes/Cockpit/Cockpit';
//燃气瓶配送台账管理
import Book_gs from './routes/Book/Book_gs';
import Book_rqz from './routes/Book/Book_rqz';
import Book_ps from './routes/Book/Book_ps';
//燃气安全生产检查
import Save from './routes/examine/Save';
import Supply from './routes/examine/Supply';
import Bussiss from './routes/examine/Bussiss';
//燃气运行监督
import Inspector from './routes/Watchdog/Inspector';
//应急预案管理
import Conplan from './routes/Conplan/Conplan';
//企业端登录
import logo1 from './routes/Logo/Logo.1';
import logo2 from './routes/Logo/Logo.2';
import logo3 from './routes/Logo/Logo.3';
//综合业务管理 
import SyndromeGYZ from './routes/Syndrome/SyndromeGYZ';
import SyndromeAQY from './routes/Syndrome/SyndromeAQY';
//系统操作日志管理
import File from './routes/File/File';
function RouterConfig ({history}) {
  return (
    <Router history={history}>
      <Router path="/">
        <IndexRoute component={Login}/>
        <Route path='logoqy' component={logo1}/>
        <Route path='logozf' component={logo2}/>
        <Route path='logogly' component={logo3}/>
        <Route path="login" component={Login}> </Route>
        <Route path="Cockpit" component={Cockpit}> </Route>
      </Router>
      
      <Route path="/" component={App}>

     
        {/* 燃气安全监督办公管理 */}
      <Route path='GasStationCall' component={GasStationCall}/>
      {/* 库存管理 */}
      <Route path='RepControl' component={RepControl}/>
      <Route path='RepControl1' component={RepControl1}/>
      <Route path='RepDetails' component={RepDetails}/>
      <Route path='RepAirDetails' component={RepAirDetails}/>
      <Route path='RepSellDetails' component={RepSellDetails}/>
      {/* 泄漏监控 */}
      <Route path='BlabVideo' component={BlabVideo}/>
      <Route path='BlabCurrent' component={BlabCurrent}/>
      <Route path='BlabHour' component={BlabHour}/>
      {/* 报警管理 */}
      <Route path='Device' component={Device}/>
      <Route path='DeviceVideo' component={DeviceVideo}/>
      {/* 数据统计分析 */}
      <Route path='DataAnals' component={DataAnals}/>
      {/* 外勤任务管理 */}
      <Route path='WorkDown' component={WorkDown}/>
      <Route path='WordCheck' component={WordCheck}/>
      <Route path='WordEdit' component={WordEdit}/>
      <Route path='WordDetails' component={WordDetails}/>
      <Route path='WordAdd' component={WordAdd}/>
      {/* 视频管理 */}
      <Route path='videoDay' component={VideoDay}/>
      <Route path='videoHistory' component={VideoHistory}/>
      {/* 钢瓶配送监管 */}
      <Route path='GasDate' component={GasDate}/>
      <Route path='GasSave' component={GasSave}/>
      {/* 社会舆情管理 */}
      <Route path='PubDetails' component={PubDetails}/>
      <Route path='Public' component={Public}/>
      <Route path='PubReply' component={PubReply}/>
      {/* 燃气站人员模块 */}
      <Route path='GasEnter' component={GasEnter}/>
      <Route path='GasSelf' component={GasSelf}/>
      {/* 燃气瓶配送台账管理 */}
      <Route path='Book_gs' component={Book_gs}/>
      <Route path='Book_rqz' component={Book_rqz}/>
      <Route path='Book_ps' component={Book_ps}/>
      {/* 燃气安全生产检查 */}
      <Route path='Save' component={Save}/>
      <Route path='Supply' component={Supply}/>
      <Route path='Bussiss' component={Bussiss}/>
      {/* 燃气运行监督 */}
      <Route path='Inspector' component={Inspector}/>
      {/* 应急预案管理 */}
      <Route path='Conplan' component={Conplan}/>
      {/* 综合业务管理 */}
      <Route path='SyndromeAQY' component={SyndromeAQY}/>
      <Route path='SyndromeGYZ' component={SyndromeGYZ}/>
      {/* 系统操作日志管理 */}
      <Route path='File' component={File}/>
      </Route>
    </Router>
  );
}

export default RouterConfig;
